From: Timm Bäder Date: Mon, 2 Sep 2019 07:35:37 +0000 (+0200) Subject: icontheme: Adapt a code sample to the GdkPaintable transition X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1~1^2~321^2^2~878 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=32cec6c1cb6b04d97d44098421ac4e022e1952e9;p=gtk4.git icontheme: Adapt a code sample to the GdkPaintable transition --- diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index d8be809a60..cee105f9c2 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -82,23 +82,23 @@ * |[ * GError *error = NULL; * GtkIconTheme *icon_theme; - * GdkPixbuf *pixbuf; + * GdkPaintable *paintable; * * icon_theme = gtk_icon_theme_get_default (); - * pixbuf = gtk_icon_theme_load_icon (icon_theme, - * "my-icon-name", // icon name - * 48, // icon size - * 0, // flags - * &error); - * if (!pixbuf) + * paintable = gtk_icon_theme_load_icon (icon_theme, + * "my-icon-name", // icon name + * 48, // icon size + * 0, // flags + * &error); + * if (!paintable) * { * g_warning ("Couldn’t load icon: %s", error->message); * g_error_free (error); * } * else * { - * // Use the pixbuf - * g_object_unref (pixbuf); + * // Use the icon + * g_object_unref (paintable); * } * ]| */